package com.test.controller;

import com.sysh.service.indexfirst;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/index")
public class index {

    @Autowired
    private indexfirst s;

    @RequestMapping("/test")
    @ResponseBody
    public  Integer  test()
    {
        return s.findAll();
    }
}
